<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<c:set var="applicationPath" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="pt">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Bagarita | Login</title>

    <!-- Bootstrap -->
    <link href="${applicationPath}/static/css/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${applicationPath}/static/css/lib/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">

    <!-- Bootstrap script -->
    <script src="${applicationPath}/static/js/lib/bootstrap.min.js" ></script>


    <link href="${applicationPath}/static/css/login.css" rel="stylesheet">
</head>

<body>
    <div class="container">
        <form class="form-signin" method="post" action="${applicationPath}/login/security_check">
            <h2 class="form-signin-heading"><spring:message code="application.name" /></h2>
            <label for="username" class="sr-only"><spring:message code="login.username" var="username" /></label>
            <input type="text" id="username" name="j_username" class="form-control" placeholder="${username}" required autofocus>
            <label for="password" class="sr-only"><spring:message code="login.password" var="password" /></label>
            <input type="password" id="password" name="j_password" class="form-control" placeholder="${password}" required>
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="j_remember"> <spring:message code="login.rememberme" />
                </label>
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="submit"><spring:message code="login.title" /></button>
        </form>
    </div>
</body>
</html>
